import request from '@/utils/request'

// 查询412列表
export function listGrandson(id) {
  return request({
    url: '/points/grandson/list?id='+id,
    method: 'get',
  })
}

// 查询412详细
export function getGrandson(id) {
  return request({
    url: '/points/grandson/' + id,
    method: 'get'
  })
}

// 新增412
export function addGrandson(data) {
  return request({
    url: '/points/grandson',
    method: 'post',
    data: data
  })
}

// 修改412
export function updateGrandson(data) {
  return request({
    url: '/points/grandson',
    method: 'put',
    data: data
  })
}

// 删除412
export function delGrandson(id) {
  return request({
    url: '/points/grandson/' + id,
    method: 'delete'
  })
}

